package com.xjscrm.server.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjscrm.common.entity.SopTaskCustomer;
import com.xjscrm.server.dto.soptask.SopTaskCustomerQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface SopTaskCustomerMapper {
    int deleteById(@Param("id") Long id);

    int insert(SopTaskCustomer record);

    int insertSelective(SopTaskCustomer record);

    SopTaskCustomer selectById(@Param("id") Long id);

    int updateByIdSelective(SopTaskCustomer record);

    int updateById(SopTaskCustomer record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    ArrayList<SopTaskCustomer> findByList(Page<SopTaskCustomer> page, @Param("query") SopTaskCustomerQuery query);
}